using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Windows.Media;
using System.Windows.Browser;

namespace TFSWorkflowControl.TSWA.SL
{
    public class GroupInfo
    {
        public string GroupName { get; set; }
        public List<StateInfo> StateInfoList { get; set; }
        public Color Color { get; set; }
        public Brush Background
        {
            get
            {
                return new SolidColorBrush(Color);
            }
        }

        public GroupInfo()
        {
            StateInfoList = new List<StateInfo>();            
        }
    }
    
    public class StateInfo
    {
        public string Reason { get; set; }
        public string Who { get; set; }
        public string Name { get; set; }
        public DateTime Date { get; set; }
        public string DateStr
        {
            get
            {
                return Date.ToString("d");
            }
        }
        public Color Color {get;set;}

        public Brush Background
        {
            get
            {
                return new SolidColorBrush(Color);
            }
        }
    }
}